home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
mallcrawl.swf
/
scripts
/
DefineSprite_883
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-09-28
|
1KB
|
37 lines
function charOnRelease()
{
tweenMe(this);
_global.char_selected = this._name;
delete this.onRelease;
}
function tweenMe(mc)
{
mc.swapDepths(this.getNextHighestDepth());
this.fadeChars(mc);
this.TweenX = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Regular.easeOut,mc._x,0,1,true);
this.TweenY = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Regular.easeOut,mc._y,0,1,true);
this.TweenXScale = new mx.transitions.Tween(mc,"_xscale",mx.transitions.easing.Regular.easeOut,mc._xscale,150,1,true);
this.TweenYScale = new mx.transitions.Tween(mc,"_yscale",mx.transitions.easing.Regular.easeOut,mc._yscale,150,1,true);
this.play();
}
function fadeChars(mc)
{
var _loc2_ = 0;
while(_loc2_ < charStore.length)
{
if(this.charStore[_loc2_]._name != mc._name)
{
this.charStore[_loc2_].enabled = false;
this.charStore[_loc2_].fade = new mx.transitions.Tween(this.charStore[_loc2_],"_alpha",mx.transitions.easing.None.easeNone,100,0,1,true);
}
_loc2_ = _loc2_ + 1;
}
}
var charStore = new Array();
_global.char_selected = undefined;
var TweenX;
var TweenY;
var TweenXScale;
var TweenYScale;
stop();